﻿@model IEnumerable<CloudFranceTriple.Models.VeteranWallPeriod>

@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.VeteranWallTitleByPeriod;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@CloudFranceTriple.WebRole.Properties.Resources.VeteranWallTitleByPeriod
        <span>- </span><a href="/member/veteranworkforce">@CloudFranceTriple.WebRole.Properties.Resources.VeteranWallTitleByPseudo</a>
    </h1>
    <section>
        @if (User.IsInRole("RollVeteranWall"))
        {
            <p>
                @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.VeteranCreate, "Create", "VeteranWorkforce", new { area = "Member" }, null)
            </p>
        }
        <table style="width: 100%;">
            <tr>
                <th>
                    @CloudFranceTriple.WebRole.Properties.Resources.VeteranPeriod
                </th>
                <th>@CloudFranceTriple.WebRole.Properties.Resources.VeteranWorkforce</th>
            </tr>

            @foreach (var item in Model)
            {
                <tr style="vertical-align: top;">
                    <td style="border: 1px solid #fffffe; border-radius: 4px;">&nbsp;@Html.DisplayFor(modelItem => item.VeteranWallYearPeriod)
                        @Html.DisplayFor(modelItem => item.VeteranWallMonthPeriod)
                    </td>
                    <td style="border: 1px solid #fffffe; border-radius: 4px">
                        @Html.Action("ShowWorkForce", "VeteranWorkforce", new { id = item.Id })
                    </td>
                </tr>
            }

        </table>
    </section>
</div>
